<!DOCTYPE html>
<%@page contentType="text/html;charset=UTF-8" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%
    String rootDir = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + rootDir + "/";
%>
<head>
    <meta charset="utf-8">
    <base href="<%=basePath%>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/common.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>plugins/ui/css/common.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>plugins/ui/css/icon.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>plugins/ui/css/xie.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>plugins/ui/css/sy.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>plugins/ui/css/ztycss.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>plugins/ui2/supplier.css">

    <link rel="stylesheet" type="text/css" href="<%=basePath%>plugins/ui-s/css/blank.css" id="ui-s-common">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>plugins/ui-s/css/blank.css" id="ui-s-icon">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>plugins/ui-s/css/blank.css" id="ui-s-blackend">
</head>

<body>
<%--弹窗容器--%>
<div id="pop-wrapper"></div>

<section class="main-section">
    <div id="menu-sidebar" class="mainpanel">
        <div class="leftpanel">
            <%--<div class="sidebar-brand">
                <a class="sidebar-title">
                    <i class="icon-houtai"></i>
                    <b class="bb-logo-font">
                        <span class="cc-logo"></span>
                        <span class="right color-fff sidebar-title-font font15">后台<br>管理</span>
                    </b>
                </a>
            </div>--%>
            <div class="sidebar-content font13" id="menu-aside">
                <h5 class="color-999 mtb10"><strong>系统菜单</strong></h5>
                <ul class="sidebar-nav sidebar-menu">

                </ul>
            </div>
        </div>

        <div class="main-container">
            <header class="navbar">
                <a id="btn-4-toggle-menu" class="container-header-liebiao" href="javascript:void(0);"><i
                        class="icon icon-liebiao"></i></a>

                <div class="btn-group right">
                    <button id="btn-4-settings" type="button" class="dropdown-toggle">
                        <img src="<%=basePath%>/css/img/avatar.png"/>
                        <span>${sessionScope.get('ONLINE.USER')['name']}</span>
                        <i class="icon icon-xiala"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <i class="icon icon-xiala"></i>
                        <%--<li><a href="javascript:void(0)"><i class="icon icon-avatar"></i>我得账号</a></li>--%>
                        <%--<li><a href="javascript:void(0)"><i class="icon icon-set"></i>账号设置</a></li>--%>
                        <li><a id="btn-4-modify-password"><i class="icon icon-mima"></i>修改密码</a></li>
                        <li><a id="btn-4-logout" class="red-hover"><i class="icon icon-tuichu"></i>安全退出</a></li>
                    </ul>
                </div>
            </header>

            <%--主体内容区--%>
            <div class="page-content" id="data-wrapper"></div>
        </div>
    </div>
</section>
</body>
<script src="<%=basePath%>plugins/jquery/jquery-1.11.3.min.js"></script>
<script src="<%=basePath%>plugins/layer/layer.js"></script>
<script src="<%=basePath%>plugins/jqueryform/jquery.form.js"></script>
<script src="<%=basePath%>plugins/laydate/laydate.js"></script>
<script src="<%=basePath%>plugins/ui/js/complex.js"></script>
<script src="<%=basePath%>plugins/ui/js/drag.js"></script>
<script src="<%=basePath%>plugins/ckeditor/ckeditor.js"></script>
<script src="<%=basePath%>js/common/function.js"></script>
<script src="<%=basePath%>js/common/index.js"></script>
<script src="<%=basePath%>plugins/ueditor/ueditor.config.js" type="text/javascript" charset="utf-8"></script>
<script src="<%=basePath%>plugins/ueditor/ueditor.all.min.js" type="text/javascript" charset="utf-8"></script>
<script src="<%=basePath%>plugins/ueditor/lang/zh-cn/zh-cn.js" type="text/javascript" charset="utf-8"></script>

<script>
    $(document).ready(function () {
        //
        var height = $(window).height();// 浏览器的高度
        $('.sidebar-nav').height(height - 110) + 'px';// 浏览器的高度加在类名为box的DIV 上
        $('.page-content').height(height - 60) + 'px';// 浏览器的高度加在类名为box的DIV 上

        //init UEditor upload config
        var UE_upload_config_overwrite = function () {
            if (window.UE) {
                UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
                UE.Editor.prototype.getActionUrl = function (action) {
                    if (action == 'uploadimage' || action == 'uploadscrawl' || action == 'uploadimage') {
                        return basePath + "/fileUpload/ueditorUpload.htm";
                    } else if (action == 'uploadvideo' || action == 'uploadfile') {
                        return basePath + "/fileUpload/ueditorUpload.htm";
                    } else if (action == 'listimage' || action == 'listfile') {
                        return basePath + "/fileUpload/ueditorListFile.htm";
                    } else {
                        return this._bkGetActionUrl.call(this, action);
                    }
                };
            }
        };
        UE_upload_config_overwrite();

        //

        /*全局查询按钮回车事件*/
        $(document).off('keyup', 'body,#data-wrapper input').on('keyup', 'body,#data-wrapper input', function (e) {
            switch (e.keyCode) {
                case 13:
                    $('#data-wrapper .btn-4-query').trigger('click');
                    break;
                default:
                    break;
            }
        });

    });
</script>
</html>
